package Model.Draw.Entities.Impl;

import Model.Core.IAchievableState;
import Model.Draw.Coordinate;
import Model.Draw.Point;

/**
 * Projeto de TCC: Editor de Diagramas de comunicação BlueJ
 * @author Jose
 */
public class StateJoint extends Point{
    private Point linkPoint;
    private IAchievableState parentState;

    public StateJoint(Coordinate x, Coordinate y, IAchievableState parentState)
    {
        super(x, y);
        this.parentState = parentState;
        linkPoint = new Point(x, y);
    }

    /**
     * @return the linkPoint
     */
    public Point getLinkPoint() {
        return linkPoint;
    }

    /**
     * @param linkPoint the linkPoint to set
     */
    public void setLinkPoint(Point linkPoint) {
        this.linkPoint = linkPoint;
    }

    public IAchievableState getParentState() {
        return parentState;
    }

    public void setParentObject(IAchievableState parentState) {
        this.parentState = parentState;
    }
}
